<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

    </style>
</head>
<body>
<div id="container"></div>
<script>
//回流
// window.onload=function(){
//     container.style.width='2000px';
// }
var arr=[1,2,3];
var len=arr.length;
for(var i=0;i<len;i++){
    if(arr[i]>1000){
        console.log(1111);
    }
}
</script>
</body>
</html>